//创建一个路由器，并暴露出去

//第一步 : 引入createRouter
import {createRouter, createWebHistory} from 'vue-router'

//引入一个一个可以能要呈现的组件

import Login from '@/views/login.vue'
import HomeForStu from '@/views/HomeForStu.vue'
import adm_scourse from '@/views/adm_scourse.vue'
import CourseList from "@/views/CourseList.vue"
import stu_grade from "@/views/stu_grade.vue"
import stu_personal from "@/views/stu_personal.vue"
import stu_setting from "@/views/setting.vue"
import tea_clist from "@/views/tea_clist.vue"
import tea_personal from "@/views/tea_personal.vue"
import tea_submitc from "@/views/tea_submitc.vue"
import tea_grade from "@/views/tea_grade.vue"
import stu_cmodify from "@/views/stu_cmodify.vue"
import adm_cstudent from "@/views/adm_cstudent.vue"
import adm_sinfo from "@/views/adm_sinfo.vue"
import adm_tinfo from "@/views/adm_tinfo.vue"
import adm_tcourse from "@/views/adm_tcourse.vue"
import adm_personal from "@/views/adm_personal.vue"
import adm_cinfo from "@/views/adm_cinfo.vue"
import adm_confirmTeaCourse from "@/views/adm_confirmTeaCourse.vue"
import course_table from "@/views/course_table.vue"
import adm_setting from "@/views/adm_setting.vue"
import tea_setting from "@/views/tea_setting.vue"
import adm_addStu from "@/views/adm_addStu.vue"
import adm_addTea from "@/views/adm_addTea.vue"
import adm_addCourse from "@/views/adm_addCourse.vue"

const router = createRouter({
    history : createWebHistory(), //路由器的工作模式
    routes : [
        {
            path:'/',
            name:'Login',
            component:Login
        },
        {
            path:'/homeforstu',
            name:'HomeForStu',
            component:HomeForStu
        },
        {
            path:'/adm_scourse',
            name:'adm_scourse',
            component:adm_scourse
        },
        {
            path:'/courselist',
            name:'CourseList',
            component:CourseList
        },
        {
            path:'/stu_grade',
            name:'stu_grade',
            component:stu_grade
        },
        {
            path:'/stu_personal',
            name:'stu_personal',
            component:stu_personal
        },
        {
            path:'/setting',
            name:'setting',
            component:stu_setting
        },
        {
            path:'/tea_clist',
            name:'tea_clist',
            component:tea_clist
        },
        {
            path:'/tea_personal',
            name:'tea_personal',
            component:tea_personal
        },
        {
            path:'/tea_submitc',
            name:'tea_submitc',
            component:tea_submitc
        },
        {
            path:'/tea_grade',
            name:'tea_grade',
            component:tea_grade
        },
        {
            path:'/stu_cmodify',
            name:'stu_cmodify',
            component:stu_cmodify
        },
        {
            path:'/adm_cstudent',
            name:'adm_cstudent',
            component:adm_cstudent
        },
        {
            path:'/adm_sinfo',
            name:'adm_sinfo',
            component:adm_sinfo
        },
        {
            path:'/adm_tinfo',
            name:'adm_tinfo',
            component:adm_tinfo
        },
        {
            path:'/adm_tcourse',
            name:'adm_tcourse',
            component:adm_tcourse
        },
        {
            path:'/adm_personal',
            name:'adm_personal',
            component:adm_personal
        },
        {
            path:'/adm_cinfo',
            name:'adm_cinfo',
            component:adm_cinfo
        },
        {
            path:'/adm_confirmTeaCourse',
            name:'adm_confirmTeaCourse',
            component:adm_confirmTeaCourse
        },
        {
            path:'/course_table',
            name:'course_table',
            component:course_table
        },
        {
            path:'/adm_setting',
            name:'adm_setting',
            component:adm_setting
        },
        {
            path:'/adm_addStu',
            name:'adm_addStu',
            component:adm_addStu
        },
        {
            path:'/adm_addTea',
            name:'adm_addTea',
            component:adm_addTea
        },
        {
            path:'/adm_addCourse',
            name:'adm_addCourse',
            component:adm_addCourse
        },
        {
            path:'/tea_setting',
            name:'tea_setting',
            component:tea_setting
        }
    ]
})


//暴露出去
export default router
